import React, { Component} from 'react'
import FastClick from 'fastclick';
import {mScript,mEvents} from 'min-bridge';
// import "src/components/ui/style/index.scss";
import 'pjh-mobile-ui/styles/index.scss';
import './App.scss';


class Index extends Component {

  componentDidMount() {
    mEvents.on(window, 'resize', window.__setFontSize__)
    setTimeout(() => {
      FastClick.attach(document.body);
    }, 100);

    __DEBUG__ && mScript('http://cdn.jsdelivr.net/eruda/1.0.5/eruda.min.js', ()=>{
      eruda.init();
    })
  }

  render() {
    return (
      <div className="app-container">
        {this.props.children}
      </div>
    )
  }
}

export default Index
